package com.pro.schedule.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pro.schedule.entity.Target;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


@Mapper
public interface TargetMapper extends BaseMapper<Target> {
    @Select("select * from target  where user_id = #{userId} order by target_status desc, target_four_quadrant asc")
    IPage<Target> selectTargetByUserId(Page<Target> page, Long userId);

}
